package com.qianji.petmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qianji.common.utils.PageUtils;
import com.qianji.petmall.product.entity.AttrEntity;
import com.qianji.petmall.product.vo.AttrRespVo;
import com.qianji.petmall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaoxin
 * @email 485350978@qq.com
 * @date 2022-01-07 14:35:43
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryAllList(Map<String, Object> params, Long catId, String type);

    AttrRespVo selectPath(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long list);

    List<Long> selectSearchAttrIds(List<Long> collect);
}

